package com.gf.pokemon.constants;

/**
 * 发OA的组简称
 * @author yesi
 *
 */
public enum OAGroup {
	gfzg("gfzg","广发资管","1871",true),
	zgyy("zgyy","资管运营","1920",false);
	
	private String shorName;
	
	private String memo;
	
	//组织Id
	private String orgId;
	
	//是否大部门
	private boolean isParent;
	
	private OAGroup(String shorName, String memo, String orgId, boolean isParent) {
		this.setShorName(shorName);
		this.setMemo(memo);
		this.setOrgId(orgId);
		this.setParent(isParent);
	}
	
	public static OAGroup parseName(String shortName){
		for(OAGroup oaGroup:OAGroup.values()){
			if(oaGroup.getShorName().equals(shortName)){
				return oaGroup;
			}
		}
		return null;
	}

	public String getShorName() {
		return shorName;
	}

	public void setShorName(String shorName) {
		this.shorName = shorName;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public boolean isParent() {
		return isParent;
	}

	public void setParent(boolean isParent) {
		this.isParent = isParent;
	}
}
